package com.hz.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hz.web.dao.HomepageDao;
import com.hz.web.entity.HomePageEntity;
import com.hz.web.service.IhomepageService;


@Service
public class HomepageServiceImpl implements IhomepageService {

	@Resource
	private HomepageDao homepageDao;
	
	@Override
	public List<HomePageEntity> queryHomePage(String homeType) {
		// TODO Auto-generated method stub
		return homepageDao.queryHomePage(homeType);
	}

	@Override
	public void addHomePage(HomePageEntity homePage) {
		// TODO Auto-generated method stub
		homepageDao.addHomePage(homePage);
	}

	@Override
	public void updateHomePage(HomePageEntity homePage) {
		// TODO Auto-generated method stub
		homepageDao.updateHomePage(homePage);
	}

	@Override
	public void delHomePage(String homeId) {
		// TODO Auto-generated method stub
		homepageDao.delHomePage(homeId);
	}

}
